import axios from 'axios'
export function getDate() {
    return axios.get(` http://localhost:3000/data`)
}
export function delFn(id) {
    return axios.delete(`http://localhost:3000/data/${id}`)
}
export function addFn(obj) {
    return axios.post(`http://localhost:3000/data`, obj)
}
export function changeFn(id, obj) {
    return axios.put(`http://localhost:3000/data/${id}`, obj)
}